home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / portage / bin / fixpackages < prev    next >
Encoding:
Text File  |  2006-06-30  |  508 b   |  21 lines

  1. #!/usr/bin/python
  2. # Copyright 1999-2006 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Id: /var/cvsroot/gentoo-src/portage/bin/fixpackages,v 1.6 2004/10/04 13:56:50 vapier Exp $
  5.  
  6. import os,sys
  7. os.environ["PORTAGE_CALLER"]="fixpackages"
  8. sys.path = ["/usr/lib/portage/pym"]+sys.path
  9.  
  10. import portage
  11.  
  12. mysettings = portage.settings
  13. mytrees = portage.db
  14. mtimedb = portage.mtimedb
  15.  
  16. portage.global_updates(mysettings, mytrees, mtimedb["updates"])
  17.  
  18. print
  19. print "Done."
  20. print
  21.